package com.springapp.mvc.entity;

import java.util.Date;


public class UserPost {
    private Long postId;
    private String postText;
    private Date postDate;
    private Long userId;
    private String userName;
    private String imageHashId;


    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public String getPostText() {
        return postText;
    }

    public void setPostText(String postText) {
        this.postText = postText;
    }

    public Date getPostDate() {
        return postDate;
    }

    public void setPostDate(Date postDate) {
        this.postDate = postDate;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getImageHashId() {
        return imageHashId;
    }

    public void setImageHashId(String imageHashId) {
        this.imageHashId = imageHashId;
    }

    @Override
    public String toString() {
        return "UserPost{" +
                "postId=" + postId +
                ", postText='" + postText + '\'' +
                ", postDate=" + postDate +
                ", userId=" + userId +
                ", userName=" + userName +
                ", imageHashId=" + imageHashId +
                '}';
    }

}
